#include <iostream>
#include <string>

#include "tcpserver.hpp"

void Usage() { printf("\n\tUsage : ./srever port[port>1024]\n\n"); }

int main(int argc, char *argv[]) {
  if (argc != 2) {
    Usage();
    exit(-1);
  }
  uint16_t port = std::stoi(argv[1]);
  TcpServer ts(port);
  ts.Init();
  ts.Start();
  return 0;
}